﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="nhantin.aspx.cs" Inherits="web_pages_nhantin" %>

<%@ OutputCache Duration="1" VaryByParam="None" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Trang nhan tin</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <link href="../../web/css/redmond/ui.all.css" rel="stylesheet" type="text/css" />
    <link href="../css/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <link href="../css/base.css" type="text/css" rel="stylesheet" />
    <link href="../css/vieclam_home.css" type="text/css" rel="stylesheet" />
    
    <script language="javascript" src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script language="javascript" src="../js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
    
    
</head>
<body>
    <form id="form1" runat="server">
        <%if (bGui)
          { %>
            <div id="nhantin" style="padding-top:5px;">   
                <div style=" width: 100%; padding: 2px;" class="ui-widget ui-widget-content ui-corner-all ">
                    <div style="height: 20px; padding-top: 5px; padding-left: 20px;" class="ui-widget-header ui-corner-all ">
                        Nhắn tin
                    </div>
                    <div style="padding: 5px;">
                            <div style="padding: 2px;" class="ui-widget ui-widget-content ui-corner-all ">
                                <table style="text-align:left;border:none;width:100%;border:none;font-size:12px;">
                                    <tr>
                                        <th style="border-bottom: #ccc 1px dotted; width:30%;text-align:left;color:#2989cc; height: 26px;">
                                            Người gửi</th>
                                        <td style="border-bottom: #ccc 1px dotted;;color:#0964d5; height: 26px; width: 371px;">
                                            <asp:Label ID="txtTenNguoiGui" runat="server" Text=""></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <th style="border-bottom: #ccc 1px dotted;text-align:left;color:#2989cc; height: 26px;">
                                            Người nhận</th>
                                        <td style="text-align:left;border-bottom: #ccc 1px dotted;color:#0964d5; height: 26px; width: 371px;">
                                            <asp:Label ID="txtTenNguoiNhan" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th style="border-bottom: #ccc 1px dotted;text-align:left;color:#2989cc;">
                                            Tiêu đề tin nhắn<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                                ControlToValidate="txtTieuDe" ErrorMessage="(*)" SetFocusOnError="True"></asp:RequiredFieldValidator></th>
                                        <td style="text-align:left;border-bottom: #ccc 1px dotted;color:#0964d5; width: 371px;">
                                            <asp:TextBox ID="txtTieuDe" runat="server" Width="100%"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <th style="border-bottom: #ccc 1px dotted;text-align:left;color:#2989cc;">
                                            Nội dung tin nhắn<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                                ControlToValidate="txtNoiDung" ErrorMessage="(*)" SetFocusOnError="True"></asp:RequiredFieldValidator></th>
                                        <td style="text-align:left;border-bottom: #ccc 1px dotted;color:#0964d5; width: 371px;">
                                            <asp:TextBox ID="txtNoiDung" runat="server" Width="100%" Rows="5" TextMode="MultiLine"></asp:TextBox></td>
                                    </tr>
                                </table>
                                <p style="text-align:center;margin:auto;">
                                    <asp:Button ID="btnOk" runat="server" CssClass="ui-corner-all ui-state-default"
                                        Text="Gửi" Width="100px" OnClick="btnOk_Click" />&nbsp;
                                    <asp:Button ID="btnCancel" runat="server" CssClass="ui-corner-all ui-state-default"
                                        Text="Thoát" UseSubmitBehavior="False" Width="50px" OnClientClick="javascript:window.close()" /></p>
	                    </div>
                    </div>
                </div>
            </div>
        <%}else if(guithanhcong){ %>
            <div id="Div1" style="padding-top:0px;">  
                <div style=" width: 100%;padding:2px;" class="ui-widget ui-widget-content ui-corner-all ">
                    <div style="height: 20px; padding-top: 5px; padding-left: 20px;" class="ui-widget-header ui-corner-all ">
                        Thao tác thành công
                    </div>
                    <div style="padding: 5px;">
                        
                        Đã gửi tin nhắn thành công. <a href="javascript:void();" onclick="javascript:window.close()">Nhấn vào đây để tiếp tục. </a>
                        
                    </div>
                </div>
            </div>
        <%} %>
    </form>
</body>
</html>
